home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 408_01 / amatch.h < prev    next >
Text File  |  1993-08-02  |  1KB  |  25 lines

  1. /*****************************************************************
  2.  | amatch - match a string against a wildcard pattern
  3.  |----------------------------------------------------------------
  4.  |  Compares a data string against a test pattern using Bourne shell
  5.  |  wildcard rules (*not* regular expression rules).
  6.  |
  7.  |  This routine is ugly and not well structured.
  8.  |
  9.  |  Author: Bill Davidsen (davidsen@crdos1.crd.ge.com) Mar 24, 1985
  10.  |        with helpful suggestions from Andy Robinson
  11.  |----------------------------------------------------------------
  12.  |  Copyright:
  13.  |    Copyright (c) 1985, 1989 by Bill Davidsen. This program may be
  14.  |    freely given, bartered, traded or sold by anyone for any
  15.  |    purpose. The supplier assumes all risk for any consequences of
  16.  |    malfunction. All other rights reserved.
  17.  |----------------------------------------------------------------
  18.  |  Arguments:
  19.  |   1 - address of wildcard pattern
  20.  |   2 - address of string to test
  21.  ****************************************************************/
  22.  
  23. int amatch(register char *ts, register char *cs);
  24.  
  25.